pkg_name=vim
version=7.4
src_dir=$src_dir_root/${pkg_name}74
url=http://ftp.vim.org/pub/vim/unix/$pkg_name-$version.tar.bz2

cd "$src_dir_root"
rm -Rf "$pkg_name-$version"
tar jxf "$pkg_name-$version.tar.bz2"

cd $src_dir

export CFLAGS=-O0
./configure			\
	--prefix=/		\
	--enable-multibyte	\
	--disable-selinux	\
	--disable-xsmp		\
	--disable-gui		\
	--disable-acl		\
	--disable-gpm		\
	--without-x		\
	--with-tlib=tinfow	\
	--disable-nls
unset CFLAGS

make

install_tmp_dir=/tmp/$pkg_name-$version
rm -Rf "$install_tmp_dir"
mkdir -p "$install_tmp_dir"
make install "DESTDIR=$install_tmp_dir"

install_dirs "$builders_dir_root/$pkg_name/runtime.dirs"
install_files "$builders_dir_root/$pkg_name/runtime.files" "$install_tmp_dir"
install_links "$builders_dir_root/$pkg_name/runtime.links"
elf_strip "$builders_dir_root/$pkg_name/elf-strip"

rm -Rf "$install_tmp_dir"
rm -Rf "$src_dir"
